/**
 *  文件名:SignatureActivity.java
 *  修改人:lihangjie
 *  创建时间:2015-9-8 下午3:08:16
 */
package com.sharemob.tinchat.modules.account;

import android.os.Bundle;
import android.os.Message;
import android.view.Window;
import android.widget.EditText;

import com.sharemob.tinchat.R;
import com.sharemob.tinchat.base.BaseActivity;
import com.sharemob.tinchat.base.Callback;
import com.sharemob.tinchat.lib.common.SMGlobal;
import com.sharemob.tinchat.modules.dao.cache.CacheManager;

/**
 * 
 * <一句话功能简述>
 *
 * @author lihangjie
 * version [版本号,2015-9-8 下午3:08:16]
 * @see    [相关类/方法]
 * @since  [产品/模块版本]
 *
 */
public class SignatureActivity extends BaseActivity {

    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_signature);
        
        this.exitView(R.id.title_back, R.anim.out_from_top, 0);
        
        this.BtnEvent(R.id.title_submit,new Callback() {
			public void doDown() {
				EditText editText=(EditText)SignatureActivity.this.findViewById(R.id.tv_signatrue);
				String signature=	editText.getText().toString();
				CacheManager.getInstance().getAccount().setSignature(signature);
				
				
				Message msg=new Message();
				msg.what=ActivityAccountInfo.KeySignature;
				Bundle bundleData = new Bundle();
				bundleData.putString("signatrue",signature);
				msg.setData(bundleData);
				SMGlobal.getInstance().handler.sendMessage(msg);
				
				finishActivity();
			}
		});
        
    }
	protected void keyEventOfListView(int position, int id) {

	}

}
